package com.cloudfun.msglisten.ws.haier.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * Created by Huqin on 2019/12/25
 */
@Data
public class MsgHeaderDTO {

    @JSONField(name = "ts")
    private Long timestamp;

    @JSONField(name = "sn")
    private String sequenceNumber;

    /**
     * online\std
     */
    private String type;

    @JSONField(name = "ver")
    private String version;

    @JSONField(name = "snd")
    private String send;

    private String from;

    private String topic;

    private Integer qos;

    private Key keys;

    @Data
    public static class Key {
        private String typeId;

        @JSONField(name = "deviceId")
        private String imei;
    }

}
